package org.holynite.fieldmanage.ejbs

import org.holynite.fieldmanage.Utils.ManagementException
import org.holynite.fieldmanage.entities.CustomerType

import javax.ejb.Remote

/**
 * Created by midnite on 15/1/20.
 */
@Remote
interface CustomerTypeManagement {
	void addType(CustomerType newType) throws ManagementException
	void saveType(CustomerType type) throws ManagementException
	void removeType(String id) throws ManagementException
	List<CustomerType> searchTypes(String keyword)
	Boolean checkTypeInUsing(CustomerType type)
}